import './index.less';
import React from "react";
export interface NodeTextProps {
    text: string;
    buttons?: React.ReactElement[] | null
}

const NodeText: React.FC<NodeTextProps> = ({ text, buttons }) => {
    return <div className="inf__selected-tree-node" style={{

    }}>
        <div style={{ marginRight: 10 }}>
            {text}
        </div>
        <div>
            {text ? buttons : null}
        </div>
    </div>;
}

export default NodeText;
